﻿
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url() no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/*预定义*/
.text-truncate-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-all
}

.text-truncate-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all
}

.text-truncate-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-all
}

.text-truncate-4 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    word-break: break-all
}

/*全局样式*/
.main-content .m-sheet.m-card {
    border-radius: 0;
}

html {
    overflow: hidden;
}
/*覆盖样式*/
.m-card__title {
    font-weight: bold;
    color: black;
}
/*dl*/
dl {
    word-break: break-all;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

dt {
    font-weight: bold;
}

dl div {
    display: flex;
    flex-wrap: wrap;
}

dt::after {
    content: "：";
}

dd + dd::before {
    content: "、";
}
/*自定义样式*/
.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}
/*Layout*/
header {
    z-index: 2 !important;
}

.app-bar .m-responsive__sizer {
    padding-bottom: 28% !important;
}

@media screen and (max-width: 768px) {
    .app-bar .m-responsive__sizer {
        padding-bottom: 62% !important;
    }
}

#main-sheet {
    height: calc(100vh - 30px);
    background-color: #f5f6f7 !important;
}

@media screen and (max-width: 768px) {
    #main-sheet {
        height: calc(100vh);
        background-color: #f5f6f7 !important;
    }
}

.app-container {
    margin-top: 250px;
    margin-left: 1rem;
    margin-right: 1rem;
}
/*scrollbar*/
::-webkit-scrollbar-track {
    border-radius: 15px;
    margin: 5px 0;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    margin: 5px 0;
}

::-webkit-scrollbar-thumb {
    margin: 5px 0;
    border-radius: 15px;
    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.44, rgb(170 168 168)), color-stop(0.72, rgb(170 168 168)), color-stop(0.86, rgb(170 168 168)));
}
/*导航抽屉*/
.nav-drawer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 16px !important;
}

.overflow-hidden > header {
    z-index: 3 !important;
}
/*页脚*/
footer {
    font-size: small;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: white !important;
    padding: .5rem;
    z-index: -1;
}

    footer a {
        color: gray !important;
    }
